-- GENERATED SPELL FOR [Mosh'Ogg Spellcrafter] --


function spell0_710(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(9053,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_710', 3000, 1)
end

function spell1_710(pUnit, Event) --@Flamestrike,n/a--
pUnit:FullCastSpellOnTarget(11829,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_710', 11000, 1)
end

function spell2_710(pUnit, Event) --@Frost Armor,Self--
pUnit:FullCastSpellOnTarget(12544,pUnit)
pUnit:RegisterEvent('Sorts_710', 0, 1)
end

function Sorts_710(pUnit, Event)
local choix_sorts_710 = math.random(0, 2)
if choix_sorts_710 == 0 then
pUnit:RegisterEvent('spell0_710', 1, 1)
end
if choix_sorts_710 == 1 then
pUnit:RegisterEvent('spell1_710', 1, 1)
end
if choix_sorts_710 == 2 then
pUnit:RegisterEvent('spell2_710', 1, 1)
end
end

function mob710_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_710', math.random(1500, 3000), 1)
end

function mob710_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob710_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob710_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(710, 1, 'mob710_Action')
RegisterUnitEvent(710, 2, 'mob710_Leave')
RegisterUnitEvent(710, 3, 'mob710_Kill')
RegisterUnitEvent(710, 4, 'mob710_Die')
